.class public Lcom/estrongs/android/ftp/b$a;
.super Ljava/lang/Thread;
.source "ESFtpSession.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/ftp/b;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "a"
.end annotation


# instance fields
.field public a:Ljava/net/ServerSocket;

.field public b:Ljava/net/InetAddress;

.field public c:I

.field public d:I

.field public e:Ljava/lang/Object;

.field public f:Z

.field public g:Ljava/util/concurrent/locks/Lock;

.field final synthetic h:Lcom/estrongs/android/ftp/b;


# direct methods
.method public constructor <init>(Lcom/estrongs/android/ftp/b;)V
    .locals 1

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    const/4 p1, 0x0

    .line 2
    iput-object p1, p0, Lcom/estrongs/android/ftp/b$a;->a:Ljava/net/ServerSocket;

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/ftp/b$a;->b:Ljava/net/InetAddress;

    const/4 v0, 0x0

    .line 4
    iput v0, p0, Lcom/estrongs/android/ftp/b$a;->d:I

    .line 5
    iput-object p1, p0, Lcom/estrongs/android/ftp/b$a;->e:Ljava/lang/Object;

    .line 6
    iput-boolean v0, p0, Lcom/estrongs/android/ftp/b$a;->f:Z

    .line 7
    new-instance p1, Ljava/util/concurrent/locks/ReentrantLock;

    invoke-direct {p1}, Ljava/util/concurrent/locks/ReentrantLock;-><init>()V

    iput-object p1, p0, Lcom/estrongs/android/ftp/b$a;->g:Ljava/util/concurrent/locks/Lock;

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/ftp/b$a;->a:Ljava/net/ServerSocket;

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ftp/b$a;->a:Ljava/net/ServerSocket;

    invoke-virtual {v0}, Ljava/net/ServerSocket;->close()V

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ftp/b$a;->g:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->unlock()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method

.method public run()V
    .locals 11

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v0}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;)Ljava/lang/Integer;

    move-result-object v0

    monitor-enter v0

    .line 2
    :try_start_0
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    if-nez v1, :cond_0

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-virtual {p0}, Ljava/lang/Object;->hashCode()I

    move-result v2

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/Integer;)Ljava/lang/Integer;

    .line 4
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1, p0}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Lcom/estrongs/android/ftp/b$a;)Lcom/estrongs/android/ftp/b$a;

    .line 5
    :cond_0
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_e

    const/4 v0, 0x0

    .line 6
    :try_start_1
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->a:Ljava/net/ServerSocket;

    if-eqz v1, :cond_1

    .line 7
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->a:Ljava/net/ServerSocket;

    invoke-virtual {v1}, Ljava/net/ServerSocket;->accept()Ljava/net/Socket;

    move-result-object v1
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :cond_1
    move-object v1, v0

    .line 8
    :goto_0
    :try_start_2
    iget-object v2, p0, Lcom/estrongs/android/ftp/b$a;->a:Ljava/net/ServerSocket;

    invoke-virtual {v2}, Ljava/net/ServerSocket;->close()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2

    goto :goto_1

    :catchall_0
    move-exception v0

    goto/16 :goto_d

    :catch_0
    move-exception v1

    .line 9
    :try_start_3
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    .line 10
    :try_start_4
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->a:Ljava/net/ServerSocket;

    invoke-virtual {v1}, Ljava/net/ServerSocket;->close()V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_1

    :catch_1
    move-object v1, v0

    .line 11
    :catch_2
    :goto_1
    :try_start_5
    iget-object v2, p0, Lcom/estrongs/android/ftp/b$a;->g:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v2}, Ljava/util/concurrent/locks/Lock;->lock()V

    .line 12
    iget-object v2, p0, Lcom/estrongs/android/ftp/b$a;->g:Ljava/util/concurrent/locks/Lock;

    invoke-interface {v2}, Ljava/util/concurrent/locks/Lock;->unlock()V
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_3

    goto :goto_2

    :catch_3
    move-exception v2

    .line 13
    invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V

    .line 14
    :goto_2
    iget-boolean v2, p0, Lcom/estrongs/android/ftp/b$a;->f:Z

    const/4 v3, 0x0

    if-nez v2, :cond_37

    iget v2, p0, Lcom/estrongs/android/ftp/b$a;->d:I

    if-nez v2, :cond_2

    goto/16 :goto_c

    :cond_2
    if-nez v1, :cond_3

    .line 15
    :try_start_6
    iget-object v2, p0, Lcom/estrongs/android/ftp/b$a;->b:Ljava/net/InetAddress;

    if-eqz v2, :cond_3

    iget v2, p0, Lcom/estrongs/android/ftp/b$a;->c:I

    if-eqz v2, :cond_3

    .line 16
    new-instance v1, Ljava/net/Socket;

    iget-object v2, p0, Lcom/estrongs/android/ftp/b$a;->b:Ljava/net/InetAddress;

    iget v4, p0, Lcom/estrongs/android/ftp/b$a;->c:I

    invoke-direct {v1, v2, v4}, Ljava/net/Socket;-><init>(Ljava/net/InetAddress;I)V
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_4

    goto :goto_3

    :catch_4
    move-exception v1

    .line 17
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    move-object v1, v0

    :cond_3
    :goto_3
    if-nez v1, :cond_5

    .line 18
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;)Ljava/lang/Integer;

    move-result-object v2

    monitor-enter v2

    .line 19
    :try_start_7
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    invoke-virtual {p0}, Ljava/lang/Object;->hashCode()I

    move-result v4

    if-ne v1, v4, :cond_4

    .line 20
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-static {v1, v3}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/Integer;)Ljava/lang/Integer;

    .line 21
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1, v0}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Lcom/estrongs/android/ftp/b$a;)Lcom/estrongs/android/ftp/b$a;

    .line 22
    :cond_4
    monitor-exit v2
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_1

    .line 23
    iget-object v0, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    const-string v1, "425 Cannot open data connection.\r\n"

    invoke-static {v0, v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/String;)V

    return-void

    :catchall_1
    move-exception v0

    .line 24
    :try_start_8
    monitor-exit v2
    :try_end_8
    .catchall {:try_start_8 .. :try_end_8} :catchall_1

    throw v0

    :cond_5
    const/4 v2, 0x1

    .line 25
    :try_start_9
    iget v4, p0, Lcom/estrongs/android/ftp/b$a;->d:I

    const/4 v5, 0x4

    if-eq v4, v2, :cond_1c

    iget v4, p0, Lcom/estrongs/android/ftp/b$a;->d:I

    const/4 v6, 0x2

    if-eq v4, v6, :cond_1c

    iget v4, p0, Lcom/estrongs/android/ftp/b$a;->d:I

    const/4 v6, 0x3

    if-eq v4, v6, :cond_1c

    iget v4, p0, Lcom/estrongs/android/ftp/b$a;->d:I

    if-ne v4, v5, :cond_6

    goto/16 :goto_6

    .line 26
    :cond_6
    iget v4, p0, Lcom/estrongs/android/ftp/b$a;->d:I

    const/4 v5, 0x5

    if-ne v4, v5, :cond_10

    .line 27
    iget-object v4, p0, Lcom/estrongs/android/ftp/b$a;->e:Ljava/lang/Object;

    check-cast v4, Lcom/estrongs/android/ftp/b$b;

    .line 28
    iget-object v5, v4, Lcom/estrongs/android/ftp/b$b;->b:Ljava/lang/String;

    .line 29
    new-instance v6, Ljava/io/File;

    invoke-direct {v6, v5}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 30
    invoke-virtual {v6}, Ljava/io/File;->exists()Z

    move-result v7

    if-eqz v7, :cond_c

    invoke-virtual {v6}, Ljava/io/File;->isDirectory()Z

    move-result v7

    if-nez v7, :cond_c

    iget-object v7, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v7, v5}, Lcom/estrongs/android/ftp/b;->b(Lcom/estrongs/android/ftp/b;Ljava/lang/String;)Z

    move-result v5

    if-nez v5, :cond_7

    goto :goto_4

    .line 31
    :cond_7
    iget-object v5, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    const-string v7, "150 Opening data connection for file.\r\n"

    invoke-static {v5, v7}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/String;)V
    :try_end_9
    .catch Ljava/lang/Exception; {:try_start_9 .. :try_end_9} :catch_e
    .catchall {:try_start_9 .. :try_end_9} :catchall_a

    .line 32
    :try_start_a
    iget-object v5, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    const/4 v8, 0x0

    iget-wide v9, v4, Lcom/estrongs/android/ftp/b$b;->a:J

    move-object v4, v5

    move-object v5, p0

    move-object v7, v1

    invoke-static/range {v4 .. v10}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Lcom/estrongs/android/ftp/b$a;Ljava/io/File;Ljava/net/Socket;ZJ)V

    .line 33
    iget-boolean v4, p0, Lcom/estrongs/android/ftp/b$a;->f:Z
    :try_end_a
    .catch Ljava/lang/Exception; {:try_start_a .. :try_end_a} :catch_d
    .catchall {:try_start_a .. :try_end_a} :catchall_a

    if-eqz v4, :cond_b

    if-eqz v1, :cond_8

    .line 34
    :try_start_b
    invoke-virtual {v1}, Ljava/net/Socket;->close()V
    :try_end_b
    .catch Ljava/lang/Exception; {:try_start_b .. :try_end_b} :catch_5

    .line 35
    :catch_5
    :cond_8
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;)Ljava/lang/Integer;

    move-result-object v4

    monitor-enter v4

    .line 36
    :try_start_c
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    invoke-virtual {p0}, Ljava/lang/Object;->hashCode()I

    move-result v2

    if-ne v1, v2, :cond_9

    .line 37
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/Integer;)Ljava/lang/Integer;

    .line 38
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1, v0}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Lcom/estrongs/android/ftp/b$a;)Lcom/estrongs/android/ftp/b$a;

    .line 39
    :cond_9
    monitor-exit v4
    :try_end_c
    .catchall {:try_start_c .. :try_end_c} :catchall_2

    .line 40
    iget-boolean v0, p0, Lcom/estrongs/android/ftp/b$a;->f:Z

    if-eqz v0, :cond_a

    .line 41
    iget-object v0, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    const-string v1, "226 ABOR succ.\r\n"

    invoke-static {v0, v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/String;)V

    :cond_a
    return-void

    :catchall_2
    move-exception v0

    .line 42
    :try_start_d
    monitor-exit v4
    :try_end_d
    .catchall {:try_start_d .. :try_end_d} :catchall_2

    throw v0

    .line 43
    :cond_b
    :try_start_e
    iget-object v4, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    const-string v5, "226 Transfer complete.\r\n"

    invoke-static {v4, v5}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/String;)V
    :try_end_e
    .catch Ljava/lang/Exception; {:try_start_e .. :try_end_e} :catch_d
    .catchall {:try_start_e .. :try_end_e} :catchall_a

    goto/16 :goto_9

    .line 44
    :cond_c
    :goto_4
    :try_start_f
    iget-object v2, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    const-string v4, "501 target is dir.\r\n"

    invoke-static {v2, v4}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/String;)V
    :try_end_f
    .catch Ljava/lang/Exception; {:try_start_f .. :try_end_f} :catch_e
    .catchall {:try_start_f .. :try_end_f} :catchall_a

    if-eqz v1, :cond_d

    .line 45
    :try_start_10
    invoke-virtual {v1}, Ljava/net/Socket;->close()V
    :try_end_10
    .catch Ljava/lang/Exception; {:try_start_10 .. :try_end_10} :catch_6

    .line 46
    :catch_6
    :cond_d
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;)Ljava/lang/Integer;

    move-result-object v2

    monitor-enter v2

    .line 47
    :try_start_11
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    invoke-virtual {p0}, Ljava/lang/Object;->hashCode()I

    move-result v4

    if-ne v1, v4, :cond_e

    .line 48
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-static {v1, v3}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/Integer;)Ljava/lang/Integer;

    .line 49
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1, v0}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Lcom/estrongs/android/ftp/b$a;)Lcom/estrongs/android/ftp/b$a;

    .line 50
    :cond_e
    monitor-exit v2
    :try_end_11
    .catchall {:try_start_11 .. :try_end_11} :catchall_3

    .line 51
    iget-boolean v0, p0, Lcom/estrongs/android/ftp/b$a;->f:Z

    if-eqz v0, :cond_f

    .line 52
    iget-object v0, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    const-string v1, "226 ABOR succ.\r\n"

    invoke-static {v0, v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/String;)V

    :cond_f
    return-void

    :catchall_3
    move-exception v0

    .line 53
    :try_start_12
    monitor-exit v2
    :try_end_12
    .catchall {:try_start_12 .. :try_end_12} :catchall_3

    throw v0

    .line 54
    :cond_10
    :try_start_13
    iget v4, p0, Lcom/estrongs/android/ftp/b$a;->d:I

    const/4 v5, 0x6

    if-eq v4, v5, :cond_11

    iget v4, p0, Lcom/estrongs/android/ftp/b$a;->d:I

    const/4 v6, 0x7

    if-ne v4, v6, :cond_2c

    .line 55
    :cond_11
    iget-object v4, p0, Lcom/estrongs/android/ftp/b$a;->e:Ljava/lang/Object;

    check-cast v4, Lcom/estrongs/android/ftp/b$b;

    .line 56
    iget-object v6, v4, Lcom/estrongs/android/ftp/b$b;->b:Ljava/lang/String;

    .line 57
    new-instance v7, Ljava/io/File;

    invoke-direct {v7, v6}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 58
    invoke-virtual {v7}, Ljava/io/File;->isDirectory()Z

    move-result v8

    if-nez v8, :cond_18

    iget-object v8, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v8, v6}, Lcom/estrongs/android/ftp/b;->b(Lcom/estrongs/android/ftp/b;Ljava/lang/String;)Z

    move-result v6

    if-nez v6, :cond_12

    goto/16 :goto_5

    .line 59
    :cond_12
    invoke-virtual {v7}, Ljava/io/File;->exists()Z

    move-result v6

    if-eqz v6, :cond_13

    iget v6, p0, Lcom/estrongs/android/ftp/b$a;->d:I

    if-ne v6, v5, :cond_13

    .line 60
    iget-wide v5, v4, Lcom/estrongs/android/ftp/b$b;->a:J

    const-wide/16 v8, 0x0

    cmp-long v10, v5, v8

    if-nez v10, :cond_13

    .line 61
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v5

    invoke-virtual {v7}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Lcom/estrongs/fs/f;->b(Ljava/lang/String;)Z

    .line 62
    :cond_13
    iget-object v5, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    const-string v6, "150 Opening data connection for file.\r\n"

    invoke-static {v5, v6}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/String;)V
    :try_end_13
    .catch Ljava/lang/Exception; {:try_start_13 .. :try_end_13} :catch_e
    .catchall {:try_start_13 .. :try_end_13} :catchall_a

    .line 63
    :try_start_14
    iget-boolean v5, p0, Lcom/estrongs/android/ftp/b$a;->f:Z
    :try_end_14
    .catch Ljava/lang/Exception; {:try_start_14 .. :try_end_14} :catch_d
    .catchall {:try_start_14 .. :try_end_14} :catchall_a

    if-eqz v5, :cond_17

    if-eqz v1, :cond_14

    .line 64
    :try_start_15
    invoke-virtual {v1}, Ljava/net/Socket;->close()V
    :try_end_15
    .catch Ljava/lang/Exception; {:try_start_15 .. :try_end_15} :catch_7

    .line 65
    :catch_7
    :cond_14
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;)Ljava/lang/Integer;

    move-result-object v5

    monitor-enter v5

    .line 66
    :try_start_16
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    invoke-virtual {p0}, Ljava/lang/Object;->hashCode()I

    move-result v2

    if-ne v1, v2, :cond_15

    .line 67
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/Integer;)Ljava/lang/Integer;

    .line 68
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1, v0}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Lcom/estrongs/android/ftp/b$a;)Lcom/estrongs/android/ftp/b$a;

    .line 69
    :cond_15
    monitor-exit v5
    :try_end_16
    .catchall {:try_start_16 .. :try_end_16} :catchall_4

    .line 70
    iget-boolean v0, p0, Lcom/estrongs/android/ftp/b$a;->f:Z

    if-eqz v0, :cond_16

    .line 71
    iget-object v0, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    const-string v1, "226 ABOR succ.\r\n"

    invoke-static {v0, v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/String;)V

    :cond_16
    return-void

    :catchall_4
    move-exception v0

    .line 72
    :try_start_17
    monitor-exit v5
    :try_end_17
    .catchall {:try_start_17 .. :try_end_17} :catchall_4

    throw v0

    .line 73
    :cond_17
    :try_start_18
    iget-object v5, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    const/4 v8, 0x1

    iget-wide v9, v4, Lcom/estrongs/android/ftp/b$b;->a:J

    move-object v4, v5

    move-object v5, p0

    move-object v6, v7

    move-object v7, v1

    invoke-static/range {v4 .. v10}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Lcom/estrongs/android/ftp/b$a;Ljava/io/File;Ljava/net/Socket;ZJ)V

    .line 74
    iget-object v4, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    const-string v5, "226 Transfer complete.\r\n"

    invoke-static {v4, v5}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/String;)V
    :try_end_18
    .catch Ljava/lang/Exception; {:try_start_18 .. :try_end_18} :catch_d
    .catchall {:try_start_18 .. :try_end_18} :catchall_a

    goto/16 :goto_9

    .line 75
    :cond_18
    :goto_5
    :try_start_19
    iget-object v2, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    const-string v4, "501 target is directory.\r\n"

    invoke-static {v2, v4}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/String;)V
    :try_end_19
    .catch Ljava/lang/Exception; {:try_start_19 .. :try_end_19} :catch_e
    .catchall {:try_start_19 .. :try_end_19} :catchall_a

    if-eqz v1, :cond_19

    .line 76
    :try_start_1a
    invoke-virtual {v1}, Ljava/net/Socket;->close()V
    :try_end_1a
    .catch Ljava/lang/Exception; {:try_start_1a .. :try_end_1a} :catch_8

    .line 77
    :catch_8
    :cond_19
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;)Ljava/lang/Integer;

    move-result-object v2

    monitor-enter v2

    .line 78
    :try_start_1b
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    invoke-virtual {p0}, Ljava/lang/Object;->hashCode()I

    move-result v4

    if-ne v1, v4, :cond_1a

    .line 79
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-static {v1, v3}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/Integer;)Ljava/lang/Integer;

    .line 80
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1, v0}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Lcom/estrongs/android/ftp/b$a;)Lcom/estrongs/android/ftp/b$a;

    .line 81
    :cond_1a
    monitor-exit v2
    :try_end_1b
    .catchall {:try_start_1b .. :try_end_1b} :catchall_5

    .line 82
    iget-boolean v0, p0, Lcom/estrongs/android/ftp/b$a;->f:Z

    if-eqz v0, :cond_1b

    .line 83
    iget-object v0, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    const-string v1, "226 ABOR succ.\r\n"

    invoke-static {v0, v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/String;)V

    :cond_1b
    return-void

    :catchall_5
    move-exception v0

    .line 84
    :try_start_1c
    monitor-exit v2
    :try_end_1c
    .catchall {:try_start_1c .. :try_end_1c} :catchall_5

    throw v0

    .line 85
    :cond_1c
    :goto_6
    :try_start_1d
    iget-object v4, p0, Lcom/estrongs/android/ftp/b$a;->e:Ljava/lang/Object;

    check-cast v4, Ljava/lang/String;

    if-nez v4, :cond_20

    .line 86
    iget-object v2, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    const-string v4, "501 Can\'t list target dir.\r\n"

    invoke-static {v2, v4}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/String;)V
    :try_end_1d
    .catch Ljava/lang/Exception; {:try_start_1d .. :try_end_1d} :catch_e
    .catchall {:try_start_1d .. :try_end_1d} :catchall_a

    if-eqz v1, :cond_1d

    .line 87
    :try_start_1e
    invoke-virtual {v1}, Ljava/net/Socket;->close()V
    :try_end_1e
    .catch Ljava/lang/Exception; {:try_start_1e .. :try_end_1e} :catch_9

    .line 88
    :catch_9
    :cond_1d
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;)Ljava/lang/Integer;

    move-result-object v2

    monitor-enter v2

    .line 89
    :try_start_1f
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    invoke-virtual {p0}, Ljava/lang/Object;->hashCode()I

    move-result v4

    if-ne v1, v4, :cond_1e

    .line 90
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-static {v1, v3}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/Integer;)Ljava/lang/Integer;

    .line 91
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1, v0}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Lcom/estrongs/android/ftp/b$a;)Lcom/estrongs/android/ftp/b$a;

    .line 92
    :cond_1e
    monitor-exit v2
    :try_end_1f
    .catchall {:try_start_1f .. :try_end_1f} :catchall_6

    .line 93
    iget-boolean v0, p0, Lcom/estrongs/android/ftp/b$a;->f:Z

    if-eqz v0, :cond_1f

    .line 94
    iget-object v0, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    const-string v1, "226 ABOR succ.\r\n"

    invoke-static {v0, v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/String;)V

    :cond_1f
    return-void

    :catchall_6
    move-exception v0

    .line 95
    :try_start_20
    monitor-exit v2
    :try_end_20
    .catchall {:try_start_20 .. :try_end_20} :catchall_6

    throw v0

    .line 96
    :cond_20
    :try_start_21
    new-instance v6, Ljava/io/File;

    invoke-direct {v6, v4}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 97
    sget-object v7, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    const-string v9, "List dir:"

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v7, v4}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 98
    iget v4, p0, Lcom/estrongs/android/ftp/b$a;->d:I

    if-eq v4, v5, :cond_24

    .line 99
    invoke-virtual {v6}, Ljava/io/File;->exists()Z

    move-result v4

    if-nez v4, :cond_24

    .line 100
    iget-object v2, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    const-string v4, "501 Can\'t list target dir.\r\n"

    invoke-static {v2, v4}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/String;)V
    :try_end_21
    .catch Ljava/lang/Exception; {:try_start_21 .. :try_end_21} :catch_e
    .catchall {:try_start_21 .. :try_end_21} :catchall_a

    if-eqz v1, :cond_21

    .line 101
    :try_start_22
    invoke-virtual {v1}, Ljava/net/Socket;->close()V
    :try_end_22
    .catch Ljava/lang/Exception; {:try_start_22 .. :try_end_22} :catch_a

    .line 102
    :catch_a
    :cond_21
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;)Ljava/lang/Integer;

    move-result-object v2

    monitor-enter v2

    .line 103
    :try_start_23
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    invoke-virtual {p0}, Ljava/lang/Object;->hashCode()I

    move-result v4

    if-ne v1, v4, :cond_22

    .line 104
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-static {v1, v3}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/Integer;)Ljava/lang/Integer;

    .line 105
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1, v0}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Lcom/estrongs/android/ftp/b$a;)Lcom/estrongs/android/ftp/b$a;

    .line 106
    :cond_22
    monitor-exit v2
    :try_end_23
    .catchall {:try_start_23 .. :try_end_23} :catchall_7

    .line 107
    iget-boolean v0, p0, Lcom/estrongs/android/ftp/b$a;->f:Z

    if-eqz v0, :cond_23

    .line 108
    iget-object v0, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    const-string v1, "226 ABOR succ.\r\n"

    invoke-static {v0, v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/String;)V

    :cond_23
    return-void

    :catchall_7
    move-exception v0

    .line 109
    :try_start_24
    monitor-exit v2
    :try_end_24
    .catchall {:try_start_24 .. :try_end_24} :catchall_7

    throw v0

    .line 110
    :cond_24
    :try_start_25
    iget-object v4, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    const-string v5, "150 Opening data connection for list.\r\n"

    invoke-static {v4, v5}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/String;)V
    :try_end_25
    .catch Ljava/lang/Exception; {:try_start_25 .. :try_end_25} :catch_e
    .catchall {:try_start_25 .. :try_end_25} :catchall_a

    .line 111
    :try_start_26
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    .line 112
    invoke-virtual {v6}, Ljava/io/File;->isDirectory()Z

    move-result v5

    if-nez v5, :cond_25

    .line 113
    iget-object v5, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    iget v7, p0, Lcom/estrongs/android/ftp/b$a;->d:I

    invoke-virtual {v5, v7, v6}, Lcom/estrongs/android/ftp/b;->a(ILjava/io/File;)Ljava/lang/String;

    move-result-object v5

    if-eqz v5, :cond_2b

    .line 114
    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_8

    .line 115
    :cond_25
    invoke-virtual {v6}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object v5

    const/4 v6, 0x0

    .line 116
    :goto_7
    array-length v7, v5

    if-ge v6, v7, :cond_2b

    .line 117
    iget-boolean v7, p0, Lcom/estrongs/android/ftp/b$a;->f:Z
    :try_end_26
    .catch Ljava/lang/Exception; {:try_start_26 .. :try_end_26} :catch_d
    .catchall {:try_start_26 .. :try_end_26} :catchall_a

    if-eqz v7, :cond_29

    if-eqz v1, :cond_26

    .line 118
    :try_start_27
    invoke-virtual {v1}, Ljava/net/Socket;->close()V
    :try_end_27
    .catch Ljava/lang/Exception; {:try_start_27 .. :try_end_27} :catch_b

    .line 119
    :catch_b
    :cond_26
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;)Ljava/lang/Integer;

    move-result-object v7

    monitor-enter v7

    .line 120
    :try_start_28
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    invoke-virtual {p0}, Ljava/lang/Object;->hashCode()I

    move-result v2

    if-ne v1, v2, :cond_27

    .line 121
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/Integer;)Ljava/lang/Integer;

    .line 122
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1, v0}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Lcom/estrongs/android/ftp/b$a;)Lcom/estrongs/android/ftp/b$a;

    .line 123
    :cond_27
    monitor-exit v7
    :try_end_28
    .catchall {:try_start_28 .. :try_end_28} :catchall_8

    .line 124
    iget-boolean v0, p0, Lcom/estrongs/android/ftp/b$a;->f:Z

    if-eqz v0, :cond_28

    .line 125
    iget-object v0, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    const-string v1, "226 ABOR succ.\r\n"

    invoke-static {v0, v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/String;)V

    :cond_28
    return-void

    :catchall_8
    move-exception v0

    .line 126
    :try_start_29
    monitor-exit v7
    :try_end_29
    .catchall {:try_start_29 .. :try_end_29} :catchall_8

    throw v0

    .line 127
    :cond_29
    :try_start_2a
    iget-object v7, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    iget v8, p0, Lcom/estrongs/android/ftp/b$a;->d:I

    aget-object v9, v5, v6

    invoke-virtual {v7, v8, v9}, Lcom/estrongs/android/ftp/b;->a(ILjava/io/File;)Ljava/lang/String;

    move-result-object v7

    if-eqz v7, :cond_2a

    .line 128
    invoke-virtual {v4, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :cond_2a
    add-int/lit8 v6, v6, 0x1

    goto :goto_7

    .line 129
    :cond_2b
    :goto_8
    iget-object v5, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    new-instance v6, Ljava/io/BufferedOutputStream;

    invoke-virtual {v1}, Ljava/net/Socket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v7

    invoke-direct {v6, v7}, Ljava/io/BufferedOutputStream;-><init>(Ljava/io/OutputStream;)V

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v5, v6, v4}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/io/BufferedOutputStream;Ljava/lang/String;)V

    .line 130
    iget-object v4, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    const-string v5, "226 Transfer complete.\r\n"

    invoke-static {v4, v5}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/String;)V
    :try_end_2a
    .catch Ljava/lang/Exception; {:try_start_2a .. :try_end_2a} :catch_d
    .catchall {:try_start_2a .. :try_end_2a} :catchall_a

    :cond_2c
    :goto_9
    if-eqz v1, :cond_2d

    .line 131
    :try_start_2b
    invoke-virtual {v1}, Ljava/net/Socket;->close()V
    :try_end_2b
    .catch Ljava/lang/Exception; {:try_start_2b .. :try_end_2b} :catch_c

    .line 132
    :catch_c
    :cond_2d
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;)Ljava/lang/Integer;

    move-result-object v2

    monitor-enter v2

    .line 133
    :try_start_2c
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    invoke-virtual {p0}, Ljava/lang/Object;->hashCode()I

    move-result v4

    if-ne v1, v4, :cond_2e

    .line 134
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-static {v1, v3}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/Integer;)Ljava/lang/Integer;

    .line 135
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1, v0}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Lcom/estrongs/android/ftp/b$a;)Lcom/estrongs/android/ftp/b$a;

    .line 136
    :cond_2e
    monitor-exit v2
    :try_end_2c
    .catchall {:try_start_2c .. :try_end_2c} :catchall_9

    .line 137
    iget-boolean v0, p0, Lcom/estrongs/android/ftp/b$a;->f:Z

    if-eqz v0, :cond_2f

    .line 138
    iget-object v0, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    const-string v1, "226 ABOR succ.\r\n"

    invoke-static {v0, v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/String;)V

    :cond_2f
    return-void

    :catchall_9
    move-exception v0

    .line 139
    :try_start_2d
    monitor-exit v2
    :try_end_2d
    .catchall {:try_start_2d .. :try_end_2d} :catchall_9

    throw v0

    :catch_d
    move-exception v4

    goto :goto_a

    :catchall_a
    move-exception v2

    goto :goto_b

    :catch_e
    move-exception v4

    const/4 v2, 0x0

    .line 140
    :goto_a
    :try_start_2e
    invoke-virtual {v4}, Ljava/lang/Exception;->printStackTrace()V

    if-eqz v2, :cond_30

    .line 141
    iget-object v2, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    const-string v4, "426 Data connection unexpectedly closed.\r\n"

    invoke-static {v2, v4}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/String;)V
    :try_end_2e
    .catchall {:try_start_2e .. :try_end_2e} :catchall_a

    :cond_30
    if-eqz v1, :cond_31

    .line 142
    :try_start_2f
    invoke-virtual {v1}, Ljava/net/Socket;->close()V
    :try_end_2f
    .catch Ljava/lang/Exception; {:try_start_2f .. :try_end_2f} :catch_f

    .line 143
    :catch_f
    :cond_31
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;)Ljava/lang/Integer;

    move-result-object v2

    monitor-enter v2

    .line 144
    :try_start_30
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    invoke-virtual {p0}, Ljava/lang/Object;->hashCode()I

    move-result v4

    if-ne v1, v4, :cond_32

    .line 145
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-static {v1, v3}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/Integer;)Ljava/lang/Integer;

    .line 146
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1, v0}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Lcom/estrongs/android/ftp/b$a;)Lcom/estrongs/android/ftp/b$a;

    .line 147
    :cond_32
    monitor-exit v2
    :try_end_30
    .catchall {:try_start_30 .. :try_end_30} :catchall_b

    .line 148
    iget-boolean v0, p0, Lcom/estrongs/android/ftp/b$a;->f:Z

    if-eqz v0, :cond_33

    .line 149
    iget-object v0, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    const-string v1, "226 ABOR succ.\r\n"

    invoke-static {v0, v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/String;)V

    :cond_33
    return-void

    :catchall_b
    move-exception v0

    .line 150
    :try_start_31
    monitor-exit v2
    :try_end_31
    .catchall {:try_start_31 .. :try_end_31} :catchall_b

    throw v0

    :goto_b
    if-eqz v1, :cond_34

    .line 151
    :try_start_32
    invoke-virtual {v1}, Ljava/net/Socket;->close()V
    :try_end_32
    .catch Ljava/lang/Exception; {:try_start_32 .. :try_end_32} :catch_10

    .line 152
    :catch_10
    :cond_34
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;)Ljava/lang/Integer;

    move-result-object v1

    monitor-enter v1

    .line 153
    :try_start_33
    iget-object v4, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v4}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;)Ljava/lang/Integer;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I

    move-result v4

    invoke-virtual {p0}, Ljava/lang/Object;->hashCode()I

    move-result v5

    if-ne v4, v5, :cond_35

    .line 154
    iget-object v4, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-static {v4, v3}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/Integer;)Ljava/lang/Integer;

    .line 155
    iget-object v3, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v3, v0}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Lcom/estrongs/android/ftp/b$a;)Lcom/estrongs/android/ftp/b$a;

    .line 156
    :cond_35
    monitor-exit v1
    :try_end_33
    .catchall {:try_start_33 .. :try_end_33} :catchall_c

    .line 157
    iget-boolean v0, p0, Lcom/estrongs/android/ftp/b$a;->f:Z

    if-eqz v0, :cond_36

    .line 158
    iget-object v0, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    const-string v1, "226 ABOR succ.\r\n"

    invoke-static {v0, v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/String;)V

    .line 159
    :cond_36
    throw v2

    :catchall_c
    move-exception v0

    .line 160
    :try_start_34
    monitor-exit v1
    :try_end_34
    .catchall {:try_start_34 .. :try_end_34} :catchall_c

    throw v0

    .line 161
    :cond_37
    :goto_c
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;)Ljava/lang/Integer;

    move-result-object v1

    monitor-enter v1

    .line 162
    :try_start_35
    iget-object v2, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v2}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v2

    invoke-virtual {p0}, Ljava/lang/Object;->hashCode()I

    move-result v4

    if-ne v2, v4, :cond_38

    .line 163
    iget-object v2, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/Integer;)Ljava/lang/Integer;

    .line 164
    iget-object v2, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    invoke-static {v2, v0}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Lcom/estrongs/android/ftp/b$a;)Lcom/estrongs/android/ftp/b$a;

    .line 165
    :cond_38
    monitor-exit v1
    :try_end_35
    .catchall {:try_start_35 .. :try_end_35} :catchall_d

    .line 166
    iget-boolean v0, p0, Lcom/estrongs/android/ftp/b$a;->f:Z

    if-eqz v0, :cond_39

    .line 167
    iget-object v0, p0, Lcom/estrongs/android/ftp/b$a;->h:Lcom/estrongs/android/ftp/b;

    const-string v1, "226 ABOR succ.\r\n"

    invoke-static {v0, v1}, Lcom/estrongs/android/ftp/b;->a(Lcom/estrongs/android/ftp/b;Ljava/lang/String;)V

    :cond_39
    return-void

    :catchall_d
    move-exception v0

    .line 168
    :try_start_36
    monitor-exit v1
    :try_end_36
    .catchall {:try_start_36 .. :try_end_36} :catchall_d

    throw v0

    .line 169
    :goto_d
    :try_start_37
    iget-object v1, p0, Lcom/estrongs/android/ftp/b$a;->a:Ljava/net/ServerSocket;

    invoke-virtual {v1}, Ljava/net/ServerSocket;->close()V
    :try_end_37
    .catch Ljava/lang/Exception; {:try_start_37 .. :try_end_37} :catch_11

    .line 170
    :catch_11
    throw v0

    :catchall_e
    move-exception v1

    .line 171
    :try_start_38
    monitor-exit v0
    :try_end_38
    .catchall {:try_start_38 .. :try_end_38} :catchall_e

    goto :goto_f

    :goto_e
    throw v1

    :goto_f
    goto :goto_e
.end method
